package com.example.studyadmin.controller;

import com.example.studyadmin.service.UserService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "用户管理接口", tags ="用户")
@RequestMapping("/rest/user")
@RestController
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("aa")
    public String aa() {
        return userService.test1();
    }

    @GetMapping("bb")
    public String bb() {
        return "bbb";
    }
}
